﻿using System;
using System.Collections.Generic;
using KM.DAT;
using KM.ENT;


namespace KM.BUS
{
    public class busLoaiSanPham
    {
        public busLoaiSanPham()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public void createEdit(entLoaiSanPham entLSP)
        {
            datLoaiSanPham datLSP = new datLoaiSanPham();
            datLSP.createEdit(entLSP);
        }
        public List<entLoaiSanPham> getAll()
        {
            datLoaiSanPham datLSP = new datLoaiSanPham();
            List<entLoaiSanPham> lst = new List<entLoaiSanPham>();
            lst = datLSP.getAll();
            return lst;
        }
        public entLoaiSanPham getInfo(int Id)
        {
            datLoaiSanPham datLSP = new datLoaiSanPham();
            entLoaiSanPham entLSPNew = new entLoaiSanPham();
            entLSPNew = datLSP.getInfo(Id);
            return entLSPNew;
        }
        public bool delete(int Id)
        {
            datLoaiSanPham datLSP = new datLoaiSanPham();
            datLSP.delete(Id);
            return true;
        }
    }
}